package aexp.customview;

import android.app.ListActivity;
import android.os.Bundle;
import java.util.ArrayList;

public class CustomView extends ListActivity {

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);
	    ArrayList<Alarm> alarmList = new ArrayList<Alarm>();
		Alarm a = new Alarm( "Low memory", false );
		alarmList.add( a );
		a = new Alarm( "Process #345 stopped", true );
		alarmList.add( a );
		a = new Alarm( "Low memory", false );
		alarmList.add( a );
		a = new Alarm( "Process #456 stopped", true );
		alarmList.add( a );
        AlarmAdapter alarmAdapter = new AlarmAdapter( 
				this,
				R.layout.alarm_row,
				alarmList ); 
       setListAdapter( alarmAdapter );
    }
}
